﻿// -----------------------------------------------------------------------
// <copyright file="Score.cs" company="">
// Author: Emil D. Buhl & Oliver Phillip Roer
// e-mail: <ebuh@itu.dk> & <olpr@itu.dk>
// </copyright>
// -----------------------------------------------------------------------

namespace BomberGame
{
    using System.Diagnostics.Contracts;

    /// <summary>
    /// A simple class, to keep track of a player and his score.
    /// </summary>
    public class Profile
    {
        /// <summary>
        /// Gets the player number.
        /// </summary>
        public readonly int PlayerNumber;

        public Profile(int playerNumber, Score score)
        {
            Contract.Requires(playerNumber >= 1 && playerNumber <= 2);
            Contract.Requires(score != null);
            PlayerNumber = playerNumber;
            Score = score;
        }

        /// <summary>
        /// Gets or sets the Score;
        /// </summary>
        public Score Score { get; set; }

        /// <summary>
        /// A string representation of profile.
        /// </summary>
        /// <returns>A string representing this profile</returns>
        public override string ToString()
        {
            return Score.ToString();
        }
    }
}
